package SwingModel;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class CmsAssignment {

	private final int asgmID;
	private final String asgmTitle;
	private final String asgmDescription;
	private final List<File> asgmFile;
	private final double maxPoint;
	private final double percentWeight;
	private Date createdDate;
	private Date avaiDate;
	private Date dueDate;
	private Date expDate;
	
	public CmsAssignment(int asgmID, String asgmTitle, String asgmDescription,
			List<File> asgmFile, double maxPoint, double percentWeight,
			Date createdDate, Date avaiDate, Date dueDate, Date expDate) {
		super();
		this.asgmID = asgmID;
		this.asgmTitle = asgmTitle;
		this.asgmDescription = asgmDescription;
		this.asgmFile = asgmFile;
		this.maxPoint = maxPoint;
		this.percentWeight = percentWeight;
		this.createdDate = createdDate;
		this.avaiDate = avaiDate;
		this.dueDate = dueDate;
		this.expDate = expDate;
	}

	
		
	@Override
	public String toString(){
		SimpleDateFormat sdf = new SimpleDateFormat("YYYY:MM:dd HH:mm:ss");
		return "Assignment: \n"
				+ "asgmID: " + asgmID + "\n"
				+ "asgmTitle: " + asgmTitle + "\n"
				+ "asgmDescription: " + asgmDescription + "\n"
				+ "asgmFie: " + asgmFile + "\n"
				+ "maxPoint: " + maxPoint + "\n"
				+ "percentWeight: " + percentWeight + "\n"
				+ "createdDate: " + sdf.format(createdDate) + "\n"
				+ "avaiDate: " + sdf.format(avaiDate) + "\n"
				+ "dueDate: " + sdf.format(dueDate) + "\n"				
				+ "expDate: " + sdf.format(expDate) + "\n";
	}
	
		
	//Getters and Setters
	
	public int getAsgmID() {
		return asgmID;
	}


	public String getAsgmTitle() {
		return asgmTitle;
	}


	public String getAsgmDescription() {
		return asgmDescription;
	}


	public List<File> getAsgmFile() {
		return asgmFile;
	}


	public double getMaxPoint() {
		return maxPoint;
	}


	public double getPercentWeight() {
		return percentWeight;
	}

	public Date getCreatedDate() {
		return createdDate;
	}


	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}


	public Date getAvaiDate() {
		return avaiDate;
	}


	public void setAvaiDate(Date avaiDate) {
		this.avaiDate = avaiDate;
	}


	public Date getDueDate() {
		return dueDate;
	}


	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}


	public Date getExpDate() {
		return expDate;
	}


	public void setExpDate(Date expDate) {
		this.expDate = expDate;
	}
	
	
}
